//2009/08/07 00:38:46
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

class CardCount
{
public:
    vector <string> dealHands(int numPlayers, string deck)
    {
        vector<string> res;
        res.clear();
		for(int i=0; i<numPlayers; i++) res.push_back("");
        if(deck.size() < numPlayers) return res;
        int num = deck.size()/numPlayers;
        for (int i=0; i<numPlayers; i++)
        {
            for (int j=i; j<deck.size(); j+=numPlayers)
            {
            	if(res[i].size() >= num) continue;
                res[i] += deck[j];
            }
        }
        return res;
    }
};
